How long does a MailItem.Property[myProperty] live?

Posted by Darien Ford on Stack Overflow See other posts from Stack Overflow or by Darien Ford
Published on 2010-06-15T11:59:13Z Indexed on 2010/06/15 12:02 UTC
Read the original article Hit count: 231

Filed under:
|

I'm writing a TransportAgent for Exchange and want to tag a MailItem with some identifying information.

The MailItem class seems to have this functionality with the MailItem.Properties property; however, my question is to the length of time an entry would remain available.

e.g.

e.MailItem.Properties.Add(new KeyValuePair<string,object>("MyKey", "myValue"));

After this MailItem is delivered to the correct mailbox, if someone were to reply to the email, would the newly created reply retain that set value?

I think while writing this question out I have answered it for myself (which rationally would be no) but any practical experience and insight would be appreciated.

© Stack Overflow or respective owner

Related posts about exchange

Related posts about mailitem